<?php
namespace home\model;
use common\model\common_model;
/**
 * 内容模型数据库操作类
 */
load_class('model', '', 0);
class content_model extends common_model {
	public $table_name = 'user';
	public $category = '';
	public function __construct() {
		$this->db_config = load_config('database');
		$this->db_setting = 'default';
		parent::__construct();
	    
	}
	//设置表名
	public function set_table($param=[]) {

		$this->table_name = $this->db_tablepre.$this->model[$param['modelid']]['tablename'];

	}
	
}
?>